<template>
  <el-dialog v-model="model" @close="closedDialog">
    <el-form :model="props.errorMsgKey" label-width="120px">
      <el-row>
        <!-- 错误信息 -->
        <el-col :span="24">
          {{ props.errorMsgKey }}
        </el-col>
      </el-row>
    </el-form>
  </el-dialog>
</template>
<script setup lang="ts">
const model = defineModel<boolean>();
const props = defineProps({
  errorMsgKey: {
    type: String,
    default: "",
  },
});

// 关闭弹框
function closedDialog() {
  if (model.value) {
    model.value = false;
  }
}
</script>
